CFLAGS =
OBJECTS = cunit_runtests.o cunit_simple_test.o cunit_simple_train.o cunit_steepness_train.o cunit_xor_test.o cunit_xor_train.o
#  cunit_unrolled_recurrent.o

cunit: $(OBJECTS)
	gcc $(OBJECTS) -o cunit_runtests -lcunit -lfloatfann2 -lfloatfann2_scalar -lm -ldl

cunit_runtests.o: cunit_runtests.c cunit_fann.h
	gcc -c cunit_runtests.c

cunit_simple_test.o: cunit_simple_test.c cunit_fann.h
	gcc -c cunit_simple_test.c

cunit_simple_train.o: cunit_simple_train.c cunit_fann.h
	gcc -c cunit_simple_train.c

cunit_steepness_train.o: cunit_steepness_train.c cunit_fann.h
	gcc -c cunit_steepness_train.c

cunit_unrolled_recurrent.o: cunit_unrolled_recurrent.c cunit_fann.h
	gcc -c cunit_unrolled_recurrent.c

cunit_xor_test.o: cunit_xor_test.c cunit_fann.h
	gcc -c cunit_xor_test.c

cunit_xor_train.o: cunit_xor_train.c cunit_fann.h
	gcc -c cunit_xor_train.c

clean:
	rm *.o
